jQuery(document).ready(function($){
	var dates = $( "#searchFromStartDate, #searchToStartDate, #searchFromEndDate, #searchToEndDate" ).datepicker({
		dateFormat: "dd-mm-yy",
		showOn: 'both',
		buttonImage: calimage,
		buttonImageOnly: true,
		buttonText: 'Choose',
		//defaultDate: "+1w",
		numberOfMonths: 1
	});
});
jQuery(document).ready(function($){

	jQuery("#frmSearch").validationEngine();

	jQuery("#searchField").change(function()
	{
	  if(jQuery("#searchString").hasClass("validate[required]"))
			{
			jQuery("#searchString").removeClass("validate[required]");
			jQuery(".searchStringformError").hide();
			}
	});

	jQuery("#search").click(function()
	{
		if(jQuery("#searchField").val()!="")
		{
		 jQuery("#searchString").addClass("validate[required]");
		 var error=jQuery('#frmSearch').validationEngine('validateField', '#searchString');
		 if(jQuery("#searchString").hasClass("validate[required]") && error==true)
			{
			jQuery(".searchStringformError").show();
			}
		 }
	});
});